package com.muyi.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.muyi.pojo.dto.PageBean;
import com.muyi.pojo.entity.Category;

import java.time.LocalDate;
import java.util.List;

/**
* @author VRMMO
* @description 针对表【category】的数据库操作Service
* @createDate 2025-06-11 15:04:41
*/
public interface CategoryService extends IService<Category> {
    /**
     * 查询全部分类数据
     * @return
     */
    List<Category> listAll();

    /**
     * 删除分类
     * @param category_id
     */
    void delete(Integer category_id);

    /**
     * 新增分类
     * @param Category
     */
    void add(Category Category);


    void update(Category Category);

    Category getByCategoryId(Integer category_id);

    PageBean page(Integer page, Integer pageSize, String category_name, String tag_name);

}
